import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/manage/Login.vue'
import HomeIndex from '@/components/home/index.vue'
import decorateList from '@/projects/decorate/decorate.vue'
import decorateCustomerList from '@/projects/decorate/customer.vue'
import decorate3d from '@/projects/decorate/index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: 'login'
    },
    {
      path: '/index',
      name: 'homeIndex',
      component: HomeIndex
    },
    {
      path: '/manage',
      redirect: 'login'
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/decorate/list/decorate',
      component: decorateList,
      meta: {auth: true, keepAlive: true},
      name: 'decorate_list'
    },
    {
      path: '/decorate/list/customer',
      component: decorateCustomerList,
      meta: {auth: true, keepAlive: true},
      name: 'customer_list'
    },
    {
      path: '/decorate/d3d',
      component: decorate3d,
      name: 'decorate3d'
    }
  ]
})
